<extend name="Public:base" />
<block name="body_content">
    <div class="app app-header-fixed <if condition='$Think.config.page-boxed eq 1'>container</if>">
        <!-- header -->
        <include file="Public:header" />
        <!-- /header -->

        <!-- aside -->
        <include file="Public:sidebar" />
        <!-- /aside -->

        <!-- content -->
        <div id="content" class="app-content" role="main">
            <div class="app-content-body ">
                <div class="bg-light lter b-b wrapper-md">
                    <h1 class="m-n font-thin h3">{$meta_title}</h1>
                </div>
                <div class="wrapper-md">
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                {$Think.lang.Gateway_SimpleInfo} - {$Think.lang.Gateway_AccessPRIVATE}
                            </div>
                            <div class="table-responsive">
                                <table class="table table-striped b-t b-light">
                                    <thead>
                                    <tr>
                                        <th>{$Think.lang.Gateway_InputGatewayName}</th>
                                        <th>{$Think.lang.Gateway_InputGatewayNickName}</th>
                                        <th>{$Think.lang.Global_CreateAt}</th>
                                        <th>{$Think.lang.Global_UpdateAt}</th>
                                        <th>{$Think.lang.Gateway_Access}</th>
                                        <th>{$Think.lang.Gateway_Status}</th>
                                        <th>{$Think.lang.Global_Action}</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist id="user_gateways_info" name="user_gateways_info">
                                        <tr>
                                            <td>{$user_gateways_info.name}</td>
                                            <td>{$user_gateways_info.friend_name}</td>
                                            <td><?php echo date('Y-m-d',strtotime($user_gateways_info['create_at'])); ?></td>
                                            <td><?php if ($user_gateways_info['update_at']!=null) {echo date('Y-m-d',strtotime($user_gateways_info['update_at']));} else {echo '-';} ?></td>
                                            <td>{:L('Gateway_AccessSmall'.$user_gateways_info['access'])}</td>
                                            <td>{:L('Gateway_StatusSmall'.$user_gateways_info['status'])}</td>
                                            <td>
                                                <a href="/gateway/edit?type={$user_gateways_info.type}&action=edit&id={$user_gateways_info.id}"><button class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i> {$Think.lang.Global_Edit}</button></a>
                                                <button class="btn btn-info btn-xs"><i class="fa fa-info"></i> {$Think.lang.Global_Detail}</button>
                                            </td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                {$Think.lang.Gateway_SimpleInfo} - {$Think.lang.Gateway_AccessSmallPUBLIC}
                            </div>
                            <div class="table-responsive">
                                <table class="table table-striped b-t b-light">
                                    <thead>
                                    <tr>
                                        <th>{$Think.lang.Gateway_InputGatewayName}</th>
                                        <th>{$Think.lang.Gateway_InputGatewayNickName}</th>
                                        <th>{$Think.lang.Global_CreateAt}</th>
                                        <th>{$Think.lang.Global_UpdateAt}</th>
                                        <th>{$Think.lang.Gateway_Access}</th>
                                        <th>{$Think.lang.Gateway_Status}</th>
                                        <th>{$Think.lang.Global_Action}</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist id="public_gateways_info" name="public_gateways_info">
                                        <tr>
                                            <td>{$public_gateways_info.name}</td>
                                            <td>{$public_gateways_info.friend_name}</td>
                                            <td><?php echo date('Y-m-d',strtotime($public_gateways_info['create_at'])); ?></td>
                                            <td><?php echo date('Y-m-d',strtotime($public_gateways_info['update_at'])); ?></td>
                                            <td>{:L('Gateway_AccessSmall'.$public_gateways_info['access'])}</td>
                                            <td>{:L('Gateway_StatusSmall'.$public_gateways_info['status'])}</td>
                                            <td>
                                                <button class="btn btn-info btn-xs"><i class="fa fa-info"></i> {$Think.lang.Global_Detail}</button>
                                            </td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /content -->

        <!-- footer -->
        <include file="Public:footer" />
        <!-- /footer -->
    </div>
</block>
<block name="custom_css">
</block>
<block name="custom_js">
</block>